/**
 * note（笔记）导航页面相关数据、方法
 */
import { reactive, ref } from "vue";
import type { ITabsList } from "@/simba/types";
import type { siTabsInstance } from "@/simba/types/component.d";

export const useNoteTabs = () => {
	const tabList = [
			{id: 0, name: '推荐'},
			{id: 1, name: '关注'}
		]
	let noteTabs = reactive<ITabsList>({
		list: tabList,
		choosedTab: tabList[0]//默认为选择，与list中的
	})
	const keyword = ref('');
	const noteTabRef = ref<siTabsInstance>();//
	return {
		noteTabs, noteTabRef, keyword
	}
}